package com.tensquare.article.dao;

import com.tensquare.article.pojo.Comment;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author Alfred
 * @description TODO
 * @date 2021/4/26 17:39
 */
public interface CommentDao extends MongoRepository<Comment,String> {

    /**
     * fetch data by rule id
     *
     * @description  根据文章ID查询评论列表
     * @param
     * @return
     */
    public List<Comment> findByArticleid(String articleid);
}
